home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re Static Menus < prev    next >
Encoding:
Internet Message Format  |  1996-07-10  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Static Menus
  2. Sent:        7/10/96 7:16 AM
  3. Received:    7/10/96 2:31 PM
  4. From:        Richard Rodseth, rodseth@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Is there any way to "lock down" the root part's menus in such a way that 
  9. >the "active" part's menus are either not shown or appended to the root 
  10. >part's menus.
  11. >
  12. >Or ... What is the best way to create a part that cannot be activated by 
  13. >the user (like simple control parts).
  14.  
  15. In theory, the root part itself can install its menu bar as the base menu 
  16. bar, but that's not something that can be done without the cooperation of 
  17. the root part.
  18.  
  19. Parts activate themselves, so it's easy enough to build one that doesn't. 
  20. In the case of ODF you have have to suppress default framework behavior. 
  21. See Get/SetFocusSet in ODFButton (Part.cpp). Basically ODFButton keeps 
  22. its own focus set which is empty unless the option key is down.
  23.  
  24. Richard
  25.  
  26.  
  27.         "It's no use prevaricating about the bush"
  28.                 - Wallace, in "The Wrong Trousers"
  29.  
  30.